
import request from '@/plugin/axios'

// 获取分页列表
export function getfilespacepage (params) {
  return request({
    url: '/fs/filespace/page',
    method: 'get',
    params: request.adornParams(params)
  })
}
// 获取列表
export function getfilespacelist (params) {
  return request({
    url: '/fs/filespace/list',
    method: 'get',
    params: request.adornParams(params)
  })
}
// 获取字典列表
export function getfilespacedict (params) {
    return request({
      url: '/fs/filespace/dict',
      method: 'get',
      params: request.adornParams(params)
    })
  }
// 获取信息
export function getfilespaceinfo (id) {
  return request({
    url: '/fs/filespace/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addfilespace (data) {
  return request({
    url: '/fs/filespace/save',
    method: 'post',
    data
  })
}

// 修改
export function updatefilespace (data) {
  return request({
    url: '/fs/filespace/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchfilespace (params) {
  return request({
    url: '/fs/filespace/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delfilespace(id) {
  return request({
    url: '/fs/filespace/delete/' + id,
    method: 'delete',
  })
}